package com.big.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * (Payz)实体类
 *
 * @author makejava
 * @since 2022-04-23 10:21:03
 */
@Data
@TableName("tb_payz")
@NoArgsConstructor
public class Payz implements Serializable {
    private static final long serialVersionUID = -74800337260250283L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    /** 订单号 */
    private Integer oid;
    /** 支付类型 */
    private Integer paytype;
    /** 支付金额 */
    private Double money;
    /** 支付状态 1.未支付WAIT_BUYER_PAY  2.支付成功TRADE_SUCCESS 3.支付关闭TRADE_CLOSED 4.支付完成TRADE_FINISHED*/
    private Integer flag;
    /** 创建时间 */
    private Date ctime;
    /** 订单号 64位*/
    private String no;


    public Payz(Integer oid, Integer paytype, Double money, String no) {
        this.oid = oid;
        this.paytype = paytype;
        this.money = money;
        this.no = no;
        this.flag=1;//未支付
        this.ctime=new Date();
    }

}

